// @ts-nocheck
import {ref} from "vue";

export const preRef = ref('')
export const formRef = ref('')
const isFlag = ref(true)

export const mySwitch=() => {
    if (isFlag.value) {
        preRef.value["style"]['transform'] = 'translateX(100%)'
        formRef.value["style"]['border-radius'] = '0 8px 8px 0'
    }
    else {
        preRef.value["style"]['transform'] = 'translateX(0%)'
        formRef.value["style"]['border-radius'] = '8px 0 0 8px'
    }
    isFlag.value = !isFlag.value
}